<?xml version="1.0" encoding="utf-8"?>
<Instance ref.Class="ui::RenameFileWindow" ref.Styles="res://DarkSkin/Apply">
  <ref.Parameter Name="ViewModel" Class="vm::IStudioModel"/>
  <ref.Parameter Name="SolutionItem" Class="vm::ISolutionItemModel"/>
  <ref.Parameter Name="Action" Class="vm::IRenameItemAction"/>
  <Window ref.Name="self" Text="Rename File" ClientSize="x:480 y:160" MinimizedBox="false" MaximizedBox="true" SizeBox="true">
    <att.BoundsComposition-set PreferredMinSize="x:480 y:160"/>
    
    <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5">
      <att.Rows>
        <CellOption>composeType:MinSize</CellOption>
        <CellOption>composeType:MinSize</CellOption>
        <CellOption>composeType:MinSize</CellOption>
        <CellOption>composeType:Percentage percentage:1.0</CellOption>
        <CellOption>composeType:MinSize</CellOption>
      </att.Rows>
      <att.Columns>
        <CellOption>composeType:MinSize</CellOption>
        <CellOption>composeType:Percentage percentage:1.0</CellOption>
        <CellOption>composeType:MinSize</CellOption>
        <CellOption>composeType:MinSize</CellOption>
      </att.Columns>

      <Cell Site="row:0 column:0" Margin="left:4 top:4 right:4 bottom:4">
        <Label Text="Original Full Name:"/>
      </Cell>
      <Cell Site="row:0 column:1 rowSpan:1 columnSpan:3">
        <SinglelineTextBox ref.Name="textBoxOriginal" Readonly="true" Text-eval="SolutionItem.FilePath">
          <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
        </SinglelineTextBox>
      </Cell>

      <Cell Site="row:1 column:0" Margin="left:4 top:4 right:4 bottom:4">
        <Label Text="New Full Name:"/>
      </Cell>
      <Cell Site="row:1 column:1 rowSpan:1 columnSpan:3">
        <SinglelineTextBox ref.Name="textBoxNew" Readonly="true" Text-bind="Action.PreviewRename(textBoxName.Text)">
          <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
        </SinglelineTextBox>
      </Cell>

      <Cell Site="row:2 column:0" Margin="left:4 top:4 right:4 bottom:4">
        <Label Text="Input the new file name:"/>
      </Cell>
      <Cell Site="row:2 column:1 rowSpan:1 columnSpan:3">
        <SinglelineTextBox ref.Name="textBoxName" Alt="N" Text-eval="SolutionItem.Name">
          <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
        </SinglelineTextBox>
      </Cell>

      <Cell Site="row:4 column:2">
        <Button ref.Name="buttonRename" Text="Rename" Alt="R" ev.Clicked="buttonRename_Clicked" Enabled-bind="textBoxName.Text != ''">
          <att.BoundsComposition-set AlignmentToParent="left:-1 top:0 right:0 bottom:0" PreferredMinSize="x:100 y:24"/>
        </Button>
      </Cell>
      <Cell Site="row:4 column:3">
        <Button ref.Name="buttonCancel" Text="Cancel" Alt="X" ev.Clicked="buttonCancel_Clicked">
          <att.BoundsComposition-set AlignmentToParent="left:-1 top:0 right:0 bottom:0" PreferredMinSize="x:100 y:24"/>
        </Button>
      </Cell>
    </Table>
  </Window>
</Instance>
